#!/usr/bin/env python3
# -*- coding: utf-8 -*-

'SHA1'
import hashlib

sha1 = hashlib.sha1()
sha1.update('how to use md5 in'.encode('utf-8'))
sha1.update(' python hashlib?'.encode('utf-8'))
print(sha1.hexdigest()) # b752d34ce353e2916e943dc92501021c8f6bca8c